import request from '@/utils/request'

export function getScorePage(query) {
  return request({
    url: '/cms/score/list',
    method: 'get',
    params: query
  })
}


export function addScore(obj) {
  return request({
    url: '/cms/score',
    method: 'post',
    data: obj
  })
}

export function getScore(id) {
  return request({
    url: '/cms/score/' + id,
    method: 'get'
  })
}

export function delScore(id) {
  return request({
    url: '/cms/score/' + id,
    method: 'delete'
  })
}

export function putScore(obj) {
  return request({
    url: '/cms/score',
    method: 'put',
    data: obj
  })
}
